#include "cexplainfactory.h"
#include <assert.h>
#include <commandProcessor/cclientserverorder.h>

CExplainFactory::CExplainFactory()
{
    m_pClientserverOrder = NULL;
}

CExplainFactory::~CExplainFactory()
{
    if(m_pClientserverOrder != NULL)
        delete m_pClientserverOrder;
}

CRequestGet* CExplainFactory::formClass(int command)
{
    switch(command)
    {
    case CLIENT_SERVER_ORDER:
        if(m_pClientserverOrder == NULL)
            m_pClientserverOrder = new CClientServerOrder;
        return m_pClientserverOrder;

    default:
        assert(0);
    }


}
